from django.conf.urls.defaults import patterns, include, url
from django.conf import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
    (r'^js/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'templates/js'}),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^admin_tools/', include('admin_tools.urls')),
    (r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': 'media/admin_tools/'}),
    (r'^media/(.*)$', 'django.views.static.serve',
         {'document_root': settings.MEDIA_ROOT}),
    (r'^$', 'fiduciam.views.homepage'),
    (r'index', 'fiduciam.views.homepage'),
    (r'noticias', 'fiduciam.views.noticias'),
    (r'sub_noticia', 'fiduciam.views.noticiainterna'),
    (r'quem_somos', 'fiduciam.views.quemsomos'),
    (r'contato', 'fiduciam.views.contato'),
    (r'servicos', 'fiduciam.views.servicos'),
    (r'portifolio', 'fiduciam.views.portifolio'),
    (r'contato', 'fiduciam.views.contato'),
    (r'^noticiainterna/(?P<slug>[\w_-]+)/$', 'fiduciam.views.noticiainterna'),
)